package com.ywb.edugui.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.UUID;

@Data
@NoArgsConstructor
@ToString
//字段需要跟表中相同
public class Teacher {
    public Teacher(String name, int level, String intro, String avatar){
        this.name = name;
        this.intro = intro;
        this.level = level;
        this.avatar = avatar;
//        默认未删除
        this.is_deleted = 0;
    }
    private String id;
    private String name;
    private String intro;
    private int level;
    private String avatar;
    private int is_deleted;
}
